package com.hill;

public class ThisTest {

       int i=0;
       ThisTest increment(){
           i++;
           return this;
       }
       void point(){
           System.out.println("i=" +i);
    }

    public static void main(String[] args) {
        ThisTest x = new ThisTest();
        x.increment().increment().increment().point();
    }
}
